package site.liuming.truismcms.core.listener;

import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

@javax.servlet.annotation.WebListener
public class WebListener implements ServletContextListener {

    Logger logger = LogManager.getLogger(WebListener.class);

    @Override
    public void contextInitialized(ServletContextEvent sce) {
        logger.info("系统启动");
    }

    @Override
    public void contextDestroyed(ServletContextEvent sce) {
        logger.info("系统关闭");
    }
}
